/**
 * 作者: clz
 * 日期: 2025-04-12 03:30:02
 * 备注: 联盟主表
 */
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionMainModel {
	protected int id; // id
	protected int level; // 联盟等级
	protected int num; // 联盟人数上限
	protected int deputy; // 副盟主人数
	protected int elite; // 精英人数
	protected int exp; // 升级到下级所需联盟经验
	protected int helpNum; // 求助功能的被帮助次数
	protected int helpTime; // 被帮助减少的时间

	public UnionMainModel() {
	}

	public UnionMainModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		level = obj.containsKey("level") ? obj.getInteger("level") : 0;
		num = obj.containsKey("num") ? obj.getInteger("num") : 0;
		deputy = obj.containsKey("deputy") ? obj.getInteger("deputy") : 0;
		elite = obj.containsKey("elite") ? obj.getInteger("elite") : 0;
		exp = obj.containsKey("exp") ? obj.getInteger("exp") : 0;
		helpNum = obj.containsKey("help_num") ? obj.getInteger("help_num") : 0;
		helpTime = obj.containsKey("help_time") ? obj.getInteger("help_time") : 0;
	}

	public int getId() {
		return id;
	}

	public int getLevel() {
		return level;
	}

	public int getNum() {
		return num;
	}

	public int getDeputy() {
		return deputy;
	}

	public int getElite() {
		return elite;
	}

	public int getExp() {
		return exp;
	}

	public int getHelpNum() {
		return helpNum;
	}

	public int getHelpTime() {
		return helpTime;
	}

}
